from likeshop_project.BASE.myBase import Tools
from likeshop_project.API.login_api import login_module

class collectionGoods_module(Tools):
    path = "api/collect/handleCollectGoods"

    def collectionGoods_action(self, is_collect, goods_id):
        url = self.host_url + self.path
        data = {
            'is_collect':is_collect,
            'goods_id': goods_id,
        }
        head = login_module(session=self.session).get_head()
        msg = self.session.post(url=url, json=data,headers=head)
        return msg.json()
